import greenfoot.*;  // (Actor, World, Greenfoot, GreenfootImage)
import java.util.Random;
public class CrabWorld extends World
{
    /**
     * Create the crab world (the beach). Our world has a size 
     * of 560x560 cells, where every cell is just 1 pixel.
     */
    
    public CrabWorld() 
    {
        super(560, 560, 1);
        Random r = new Random();
       
        
        addObject(new Crab(), r.nextInt(560) , r.nextInt(560));
        addObject(new Crab2(), r.nextInt(560) , r.nextInt(560));
        
        
        for(int i = 0 ; i < 3 ; i ++){
            addObject(new Trash(), r.nextInt(560) , r.nextInt(560));
        }
        for(int i = 0 ; i < 10 ; i ++){
            addObject(new Worm(), r.nextInt(560) , r.nextInt(560));
        }
    }
}